<!DOCTYPE html>
<html lang="zh" class="js">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>流量消耗器  https://api.vv1234.cn/llxhq/ </title>
    <meta name="keywords" content="流量消耗器,流量杀手,https://api.vv1234.cn/llxhq/">
    <meta name="description" content="流量消耗器，web版流量杀手，https://api.vv1234.cn/llxhq/。">
    <link rel="stylesheet" href="css/dashlite.css">
	<link rel="stylesheet" href="css/style.css?v=20220626">
	<link rel="shortcut icon" href="//wx1.vv1234.cn/favicon.ico">
	<link rel="manifest" href="manifest.json">
	<script type="text/javascript">
	if (navigator.serviceWorker != null) {
		navigator.serviceWorker.register('sw-pwa.js?20220628')
		.then(function(registration) {
			console.log('Registered events at scope: ', registration.scope);
		});
	}
	</script>


</head>
<body class="nk-body npc-invest bg-lighter " style="cursor:pointer">
    <!-- wrap @s -->
    <div class="nk-wrap ">
        <!-- main header @s -->
<div class="nk-header nk-header-fluid nk-header-fixed is-light">
    <div class="container-xl">
        <div class="nk-header-wrap link-between">
            <div class="nk-menu-trigger mr-sm-2 d-lg-none">
                <a href="#" class="nk-nav-toggle nk-quick-nav-icon" data-target="headerNav"><em
                        class="icon ni ni-menu"></em></a>
            </div>
            <div class="nk-header-brand">
                <a href="#" class="logo-link text-base"><img src="https://puep.qpic.cn/coral/Q3auHgzwzM4fgQ41VTF2rKndoDgEvAVV5cqSibegTpcHqYVqLeADsQw/0" class="hide-mb-sm">流量消耗器</a>
			</div>
            <!-- .nk-header-brand -->
            <div class="nk-header-tools nk-header-menu" data-content="headerNav">
                <div class="nk-header-mobile">
                    <div class="nk-header-brand">
                        <a href="/" class="logo-link text-base">
                            <span class="nio-version" style="font-size: 21px;position: inherit;">零玖互联</span>
                        </a>
                    </div>
                    <div class="nk-menu-trigger mr-n2">
                        <a href="#" class="nk-nav-toggle nk-quick-nav-icon" data-target="headerNav"><em class="icon ni ni-arrow-left"></em></a>
                    </div>
                </div>
                <!-- Menu -->
                <ul class="nk-menu nk-menu-main">
                    <li class="nk-menu-item ">
                        <a href="#" class="nk-menu-link nk-ibx-action-item">
                            <em class="icon ni ni-home"></em>
                            <span class="nk-menu-text">首页</span>
                        </a>
                    </li>
                    <li class="nk-menu-item ">
                        <a href="//ip.vv1234.cn" class="nk-menu-link nk-ibx-action-item">
                            <em class="icon ni ni-policy"></em>
                            <span class="nk-menu-text">IP归属查询</span>
                        </a>
                    </li>
					<li class="nk-menu-item ">
					    <a href="//pan.vv1234.cn" class="nk-menu-link nk-ibx-action-item">
					        <em class="icon ni ni-dropbox"></em>
					        <span class="nk-menu-text">免费图床</span>
					    </a>
					</li>
					<li class="nk-menu-item ">
					    <a href="//vv1234.cn" class="nk-menu-link nk-ibx-action-item">
					        <em class="icon ni ni-heart"></em>
					        <span class="nk-menu-text">零玖博客</span>
					    </a>
					</li>
                    <li class="nk-menu-item ">
                        <a href="https://wj.qq.com/s2/11351944/d45f" class="nk-menu-link nk-ibx-action-item">
                            <em class="icon ni ni-comments"></em>
                            <span class="nk-menu-text">留言反馈</span>
                        </a>
                    </li>
                </ul>
            </div>
            <!-- .nk-header-menu -->
            <div class="no-gutters">
                <ul class="nk-quick-nav">
                    <li class="dropdown">
                        <a href="javascript:;" class="progress-rating dark-switch ">
                            <span class="nk-menu-icon">
                                <em class="icon ni ni-moon"></em>
                                <em class="icon ni ni-sun d-none"></em>
                            </span>
                        </a>
                    </li>
                   
                    <!-- .dropdown -->
                </ul>
                <!-- .nk-quick-nav -->
            </div>
            <!-- .nk-header-tools -->
        </div>
        <!-- .nk-header-wrap -->
    </div>
    <!-- .container-fliud -->
</div>
<!-- main header @e -->
        <!-- content @s -->
        <div class="nk-content nk-content-lg nk-content-fluid">
            
<style>
.stat {
    width: 100%;
    column-gap: 1rem;
    padding: 1rem 1.5rem;
}
.stat-title {
    white-space: nowrap;
    opacity: .6;
}
.stat-value {
    white-space: nowrap;
    grid-column-start: 1;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.5rem
}
</style>
<div class="container-xl" id="app">
<div class="col-sm-12 col-md-10 col-xl-8 center-block">
    <div class="card card-preview">
        <div class="card-inner mt-3">
            <div class="nya-title nk-ibx-action-item progress-rating">
                <span class="nk-menu-text font-weight-bold">流量消耗器</span>
            </div>
            <div class="form-group">
              <p> <b>声明</b>：本工具仅自用，并无后门，且工作原理很简单，就是js来替你循环下载一些资源文件而已，不放心用可以不用哈，不用非得踩一脚说我会往你手机下载木马病毒！</p>
		    
                
			<p><a href="https://api.vv1234.cn/JumpURL/share/llxhq_ad_tiaozuan.php" class="nk-menu-link nk-ibx-action-item"><img src="https://wx1.vv1234.cn/2022/08/21/1086301d4ea0e6f9.gif" alt="AD-IMG" title="AD-IMG" width="300" height="30"  /></a></p>
			
			<p>Tip:速度不满意？请尝试手工切换节点，加大线程<br/>带的箭头↓👇的为主分类，请点击箭头下方的内容</p>
                <label class="form-label"></label>
          <h6><em class="icon ni ni-info"></em> 下载链接</h6>        
                <div class="form-control-wrap">
		<select  type="text" v-model="set.input"  class="form-control" autocomplete='new-password'>
			<option value="https://cachefly.cachefly.net/50mb.test" selected = "selected">默认 [如需其他请下拉选择节点或直接输入资源链接] </option>
					<optgroup label="👇👇  中国移动 👇👇">
			<option value="https://d.musicapp.migu.cn/upload/fbpt_rsync_apps/local/signed/MobileMusic7411/MobileMusic7411_014000D.apk">咪咕音乐</option>
		  <option value="https://img.mcloud.139.com/material_prod/material_media/20221128/1669626861087.png">和彩云1</option>
			<option value="https://plaza.cmgame.com:8443/resource/upload/records/tvapk/apk/6.9.1.0_0_5132_2021-12-29_10011000000_xw_sec_signed_signed_signed.apk">咪咕快游1</option>
			<option value="https://pc-dl.migufun.com:8443/channelpackage/mgame-2djSBy.exe">咪咕快游2</option>
		 	<option value="https://freeserver.migufun.com/resource/beta/video/system/20210924112351666.mp4">咪咕快游3</option>
		 	<option value="https://freeserver.migufun.com/resource/beta/apk/20231114094513/MiguPlay-V3.69.1.1_miguzsj.apk">咪咕快游4</option>
                	<optgroup label="👇👇  中国电信 👇👇">
			<option value="https://desk.ctyun.cn/desktop/software/clientsoftware/download/5961fa22ee369eba433da6b0247eb11f">天翼云1</option>
			<option value="https://desk.ctyun.cn:8999/desktop-prod/software/android_client/20/64/102010101/clouddesktoc_phone_2.1.1_452_prod_102010101_2.1.1_signed.apk">天翼云2</option>
		    <option value="https://desk.ctyun.cn/desktop/software/clientsoftware/download/50218cd4d2286623049e374061cffd0e">天翼云3-翼加密客户端</option>
		     <option value="https://desk.ctyun.cn/desktop/software/clientsoftware/download/ff3e71dcc21152307f54700c62e5aef6">天翼云应用市场</option>
    		    <optgroup label="👇👇  中国联通 👇👇">
			<option value="https://listen.10155.com/listener/womusic-bucket/90115000/mv_vod/volte_mp4/20230215/1625752132487675906.mp4"> 联通电视</option>
    		 <option value="https://m1.ad.10010.com/small_video/uploadImg/1669798519261.png"> 联通官网静态资源1</option>
					<optgroup label="👇👇 百度 👇👇">
		       <option value="https://bdcdncnc.inter.71edge.com/cdn/pca/20231130/10.9.1.7348/channel/1701328986348/IQIYIsetup_z43.exe">爱奇艺</option>  
		        <option value="https://fanyi-cdn.cdn.bcebos.com/static/api-ssr/static/js/2.1c6a3a74.chunk.js"> 百度对象存储资源</option>
					<optgroup label="👇👇 阿里系 👇👇">
			<option value="https://img.alicdn.com/imgextra/i1/O1CN01xA4P9S1JsW2WEg0e1_!!6000000001084-2-tps-2880-560.png">阿里图片CDN域名加速</option>
			<option value="https://mdn.alipayobjects.com/ind_developertool/afts/file/A*fSAmSbgxLosAAAAAAAAAAAAADlx-AQ?af_fileName=AlipayKeyTool-2.0.3.dmg">支付宝开放平台1</option>
			  <option value="https://gw.alipayobjects.com/render/p/yuyan/180020010001210191/umi.9f3e4149.js">支付宝开放平台2</option>
             <option value="https://gw.alicdn.com/tfscom/TB1fASCxhjaK1RjSZKzXXXVwXXa.jpg">阿里系Gw</option>
                    <optgroup label="👇👇 腾讯 👇👇">
			<option value="https://game.gtimg.cn/images/nz/web202106/index/bc_part1.gif?0.3190485611376561">腾讯游戏-静态资源加速1</option>
		 	<option value="https://wegame.gtimg.com/g.55555-r.c4663/wegame-home/sc02-03.514d7db8.png">Wegame-静态资源加速</option>
					<optgroup label="👇👇 京东 👇👇">
			<option value="https://img10.360buyimg.com/live/jfs/t1/128947/12/26918/1361527/6260e71bE0ee85af5/ecaa17ea8dd3dddb.jpg">京东商城图片CDN服务</option>
					<optgroup label="👇👇  网易 👇👇">
			<option value="https://n.v.netease.com/2022/1206/de4b6add85f1537da839bdb5a501253d.mp4">逆水寒官网静态资源</option>
			<option value="https://nsh.gdl.netease.com/NGP/NGP_NSH_2.0.81143.exe">逆水寒客户端</option>
			<option value="https://x19.gdl.netease.com/MCLauncher_1.10.0.15222.exe">MCLauncher网易版(阿里CDN)</option>
			<option value="https://mov.bn.netease.com/open-movie/nos/mp4/2015/11/26/SB8ECV1ST_sd.mp4">网易公开课(白云山CDN)</option> 
			<option value="https://nsh.gdl.netease.com/cloudgame_macos/NSH_cloud_game_for_mac_1.4.6_2023_06-02-11.dmg">网易云游戏</option> 
					<optgroup label="👇👇  蓝绿大厂 👇👇">
			<option value="https://wwwstatic.vivo.com.cn/vivoportal/files/resource/funtouch/1651200648928/images/os2-jude-video.mp4">VIVO官网静态资源</option> 
			 <option value="https://dsfs.oppo.com/oppo/shop-pc-v2/main/js/9fb472f.js">OPPP商城静态资源</option>
			<option value="https://imgwsdl.vivo.com.cn/appstore/developer/soft/20210125/202101251051528awqa.apk">VIVO应用商店</option> 
					<optgroup label="👇👇  字节跳动 👇👇">
			<option value="https://lf9-cdn-tos.bytecdntp.com/cdn/yuntu-index/1.0.4/case/maiteng/detailbg.png">字节CDN资源</option>
				<option value="https://lf9-apk.ugapk.cn/package/apk/bgame/1593_112/bgame_operation_update_2508_v1593_112_63aa_1693882489.apk?v=1693882509">字节CDN资源2</option>
			<option value="https://www.douyin.com/download/pc/obj/douyin-pc-client/7044145585217083655/releases/11259813/3.0.1/win32-ia32/douyin-downloader-v3.0.1-win32-ia32-douyinDownload1.exe">抖音Win客户端</option>
			<option value="https://lf9-apk.ugapk.cn/package/apk/news_article/1001_9660/news_article_tt_wtt_qrcod_v1001_9660_4cd4_1706007871.apk?v=1706007877
">今日头条安卓客户端</option>
			<option value="https://sf3-cn.feishucdn.com/obj/ee-appcenter/9323162e/Feishu-darwin_x64-7.4.9-signed.dmg">飞书Mac客户端</option>
			  <optgroup label="👇👇  哔哩哔哩 👇👇">
			<option value="https://activity.hdslb.com/blackboard/static/20210604/4d40bc4f98f94fbc71c235832ce3efd4/hJEhL6jGOY.zip">上海灵羊1</option>
					<optgroup label="👇👇  华为 👇👇">
			<option value="https://consumer-img.huawei.com/content/dam/huawei-cbg-site/common/mkt/pdp/phones/p60-pro/images/camera/huawei-p60-pro-camera-ui.mp4">华为P60-pro素材</option> 
					<optgroup label="👇👇  锤子 👇👇">
			<option value="https://static.smartisanos.cn/common/video/production/ocean/os-1-1710.mp4">Smartisan OS 官网公共资源</option> 
					<optgroup label="👇👇 拼多多 👇👇">
		   <option value="https://funimg.pddpic.com/c3affbeb-9b31-4546-b2df-95b62de81639.png.slim.png">拼多多H5官网静态资源-图像小文件</option> 
			<option value="https://t00img.yangkeduo.com/chat/images/2022-12-12/79e0a4684de85c7b59f797819260be98.jpeg">拼多多IMG/CDN资源文件</option> 
					<optgroup label="👇👇 国内其他大厂 👇👇">
			<option value="https://dh5.cntv.myhwcdn.cn/asp/h5e/hls/1200/0303000a/3/default/ec48b9f8c76e49af842d4942914ad663/1.ts">CCTV</option>
			<option value="https://cdn.aixifan.com/downloads/AcFun-acfunh5-release-6.62.0.1238_x64_60b608.apk">AcFun</option>
			<option value="https://shark2.douyucdn.cn/front-publish/live-master/lib/vendor-room_4e3a873.js">斗鱼CDN-小文件</option>
			<option value="https://dn-mars-assets.qbox.me/qiniulog/img-slogan-white-en.png">七牛云</option>
			<option value="https://picture.xianniu.com/pc/download/4.6.9.3/xianniusetup.4.6.9.3.exe">鲜牛加速器(华为云CDN)</option>
			<option value="https://gh.con.sh/https://github.com/AaronFeng753/Waifu2x-Extension-GUI/releases/download/v2.21.12/Waifu2x-Extension-GUI-v2.21.12-Portable.7z">GitHub文件加速(cloudflare CDN)</option>
					<optgroup label="👇👇 海外优选节点 👇👇">
			<option value="https://cachefly.cachefly.net/100mb.test" >Cachefly 100MB</option>
			<option value="https://speed.cloudflare.com/__down?bytes=25000000">cloudflare</option>
			<option value="https://sgp-ping.vultr.com/vultr.com.1000MB.bin">Vultr 1G(新加坡)</option>
			<option value="https://nj-us-ping.vultr.com/vultr.com.1000MB.bin">Vultr 1G(纽约)</option>
			<option value="https://speedtest.tokyo2.linode.com/100MB-tokyo2.bin">Linode 100MB(日本省东京市)</option>
			<option value="https://emp.bbci.co.uk/emp/dashjs/3.2.0-8/dash.all.min.js">BBC中文网</option>
					<optgroup label="👇👇 接口并发测试 👇👇">
			<option value="https://api.vv1234.cn/bing/api.php?idx=-1" >必应壁纸API</option>
			</select>
		 <input style="" type="text" v-model="set.input" placeholder="直接在输入框内输入文件资源的下载链接即可，适用于未开启防盗链的直链资源，不支持网盘资源解析" class="form-control" autocomplete="off">
           
				</div>
            </div>
            <div class="form-group">
                <label class="form-label">线程</label>
                <div class="form-control-wrap number-spinner-wrap">
                    <button class="btn btn-icon btn-outline-primary number-spinner-btn number-minus" @click="if(set.thread>1)set.thread--"><em class="icon ni ni-minus"></em></button>
                    <input type="number" class="form-control number-spinner" min="1" max="32" v-model="set.thread">
                    <button class="btn btn-icon btn-outline-primary number-spinner-btn number-plus"><em class="icon ni ni-plus" @click="if(set.thread<32)set.thread++"></em></button>
                </div>
            </div>
            <div class="form-group">
                <div class="preview-block">
                    <div class="custom-control custom-switch">
                        <input type="checkbox" class="custom-control-input" v-model="set.infinite" id="customSwitch2">
                         <label class="custom-control-label" for="customSwitch2">无限循环</label>
                       
                    </div>
                </div>
            </div>
            <button class="btn btn-dim btn-outline-secondary btn-block card-link" @click="run">
                {{set.status?'停止':'开始'}}
            </button>
			
            <div class="row mt-4">
                <div class="col-sm-12 col-md-4 border stat">
                    <div class="text-dark"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-15 w-15 float-right pt-3"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"></path></svg></div>
                    <div class="stat-title">已消失的流量</div>
                    <div class="stat-value">{{changeFilesize(waste)}}</div>
                </div>
                <div class="col-sm-12 col-md-4 border stat">
                    <div class="text-info"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-15 w-15 float-right pt-3"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></div>
                    <div class="stat-title">每秒实时流量</div>
                    <div class="stat-value text-info">{{speed}}</div>
                </div>
                <div class="col-sm-12 col-md-4 border stat">
                    <div class="text-dark"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-15 w-15 float-right pt-3"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div>
                    <div class="stat-title">运行时长</div>
                    <div class="stat-value">{{secToTime(spend)}}</div>
                </div>
                </div> <br/><p class="stat-title"  id="result">...正在努力加载用户侧网络延时情况....</p><p  id="realTime"></p>  
        </div>
    </div>
    <div class="card card-preview">
        <div class="card-inner">
	   <h6><em class="icon ni ni-info"></em> 工具说明</h6>
            <div class="accordion-inner">
		   	<p>多线程消耗流量,web版流量杀手</p>
                <p>此工具可以以浪费的形式消耗你的流量</p>
			
				<p>
				Tips: 如手机套餐内含头条系，阿里系，百度系等定向流量，填写免流量的资源URL，即可直接消耗免费的定向流量</p>
				<p>如果是要消耗机场流量,建议使用海外节点,速度可能会更快</p>
				 <p>注：虽支持可自定义下载地址 但无法请求跨域链接</p>
				 <p>	
				 <hr>
				 
				 
				 <p> 感谢您对流量消耗事业做出的贡献!</p>
				 <p>  如您为移动19元芝麻卡套餐用户，欢迎加企鹅群 <a href="//api.vv1234.cn/JumpURL/share/jiaqun178317823.php" target="_blank"> 178317823 </a> 讨论交流</p>
				 
					 
				 
            <p>您的访问信息如下：</p>
			<li class="nk-menu-item ">
		    <p class="text-danger"><script>ipinfo()</script></p> 
		   <p>
		   </li>
		  <a href="https://ip.vv1234.cn" target="_blank"><img src="https://ip.vv1234.cn/ipx/" onError="this.src='https://api.szfx.top/info-card/?word=%E6%AC%A2%E8%BF%8E%E6%9D%A5%E8%AE%BF~'"></a> 
		   </p>
		  <a href="old-index.php" target="_blank" class="nk-menu-link nk-ibx-action-item">→ 点我切换回旧版 ←</a>
			 <hr>	
			   
	 <p>最近更新:  <a href="version-update.php" target="_blank" rel="noopener" data-pjax-state="">20240805</a>  </p>
	   <p> 日常更新：因<a href="https://vv1234.cn/archives/881.html" target="_blank" data-pjax-state="">供应链投毒事件</a>，暂移除51啦统计代码并替换Staticfile相关内容等更新/移除部分失效资源链接，优化国内部分地区访问速度</p>
	  <p>功能优化:对于网络波动及第三方资源访问故障等网络错误问题造成的执行中断,改为仍然强制执行!</p>
	 	 <p>为降低终端设备CPU占用,暂时关闭网页特效,默认线程调整为10</p>	 
		 <hr>	
	
         <br/>
	   
	   
	 	</div>
        </div>
    </div>
</div>
</div>

       <div class="mt-5 text-center">
           <p id='hitokoto' class="text-gray"></p>
     <a href="https://api.vv1234.cn/llxhq/" class="btn btn-sm btn-outline-light ">
           <em class="icon ni ni-heart"> 收藏本页地址</em> <em class="icon ni ni-heart"> </em>
		   </a>
		   <br/>
		    
		    <br/>
		<a href="https://api.vv1234.cn/llxhq/" class="btn btn-sm btn-outline-light "> 	
		<span class="nk-menu-link nk-ibx-action-item">https://api.vv1234.cn/llxhq/</span>  
		</a>	
            </div>
        </div>
        <!-- content @d -->
        <div class="nk-footer nk-footer-fluid bg-lighter">
    <div class="container-xl">
        <div class="nk-footer-wrap">
            <div class="nk-footer-copyright"> &copy; 2022 <a href='https://vv1234.cn/archives/750.html' target="_blank">零玖博客(点我立即下载本站源码) </a>
	          </div>
		  </div>
    </div>
</div>
<!-- footer @e -->
    </div>
    <!-- wrap @e -->
<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js"></script>
<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/4.6.1/js/bootstrap.bundle.min.js"></script>
<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script>
<script src="js/nioapp.min.js"></script>
<script src="js/script.js"></script>
<script src="js/common.js"></script>

<script>
var plugin_id = 5;
var plugin_is_star = 0;
$("#star-btn-text").text(plugin_is_star?'取消收藏':'添加收藏');
$(document).ready(function(){
    $('.dark-switch').on("click", function(e) {
        if ($("body.dark-mode").length <= 0) {
            document.cookie='darkmode=1';
        } else {
            document.cookie='darkmode=0';
        }
    });
})
</script>

<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js"></script>
<script src="//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/axios/0.26.0/axios.min.js"></script>
<script>
var errors = null
new Vue({
    el: '#app',
    data: {
        set: {
            input: 'https://desk.ctyun.cn/desktop/software/clientsoftware/download/ff3e71dcc21152307f54700c62e5aef6',
            output: '',
            infinite: true,
            status: false,
            thread: 10,
        },
        tasks: [],
        speed: '0.00B/s',
        spend: 0,
        waste: 0,
        timer: null,
        cancelSource: axios.CancelToken.source()
    },
    watch: {
        async 'set.status'(newVal) {
            if (newVal) {
                this.cancelSource = axios.CancelToken.source()
                this.timer = setInterval(() => {
                    this.speed = this.changeDownloadSpeed(this.tasks.reduce(function (prev, curr) {
                        return prev + curr;
                    }, 0));
                    this.spend++
                }, 1000)
                do {
                    await new Promise(resolve => {
                        let task = []
                        for (let i = 0; i < this.set.thread; i++) {
                            task.push(this.download(Math.random().toString(36).substr(2, 10)))
                        }
                        Promise.all(task).finally(resolve)
                    })
                } while (this.set.status && this.set.infinite)
            } else {
                clearInterval(this.timer)
                this.cancelSource.cancel()
            }
        }
    },
    methods: {
        run() {
            this.set.status = !this.set.status
        },
        download(id) {
            let loaded = 0
            let speed = 0
            let timestamp = new Date().getTime()
            let that = this
            const index = this.tasks.push(speed) - 1
            return axios.request({
                url: this.set.input,
                params: {
                    [id]: id,
                },
                cancelToken: this.cancelSource.token,
                onDownloadProgress: function (progressEvent) {
                    // 处理原生进度事件
                    const now = new Date().getTime();
                    speed = (progressEvent.loaded - loaded) / (now - timestamp) * 1000
                    that.tasks[index] = speed
                    that.waste += progressEvent.loaded - loaded
                    loaded = progressEvent.loaded
                    timestamp = now
                },
            }).catch(e => {
                if (!axios.isCancel(e)) {
				//layer.msg(e.message, {icon:2})
				layer.msg('因对方服务器限制，该资源暂无法访问，建议更换其他节点！', {icon:2})
				 //  this.set.status = false
				  this.set.status = true
                }
            }).finally(() => {
                delete that.tasks[index]
            })
        },
        secToTime(s) {
            let t = '';
            if (s > -1) {
                let hour = Math.floor(s / 3600)
                let min = Math.floor(s / 60) % 60
                let sec = s % 60
                if (hour > 0) {
                    if (hour < 10) {
                        t += '0'
                    }
                    t = hour + "h"
                }
                if (hour > 0 || min > 0) {
                    if (min < 10) {
                        t += '0'
                    }
                    t += min + "m"
                }
                if (sec < 10) {
                    t += '0'
                }
                t += sec + 's'
            }
            return t
        },
        changeFilesize: (filesize) => {
            filesize = parseInt(filesize);
            let size = "";
            if (filesize === 0) {
                size = "0.00 B"
            } else if (filesize < 1024) { //小于1KB，则转化成B
                size = filesize.toFixed(2) + " B"
            } else if (filesize < 1024 * 1024) { //小于1MB，则转化成KB
                size = (filesize / 1024).toFixed(2) + " KB"
            } else if (filesize < 1024 * 1024 * 1024) { //小于1GB，则转化成MB
                size = (filesize / (1024 * 1024)).toFixed(2) + " MB"
            } else { //其他转化成GB
                size = (filesize / (1024 * 1024 * 1024)).toFixed(2) + " GB"
            }
            return size;
        },
        changeDownloadSpeed(filesize) {
            filesize = this.changeFilesize(filesize);
            return filesize.replace(/\s([K|M|G|B]*)B{0,1}/, '$1/s')
        }
    },
});

////页面保活A 网络延迟输出
 function testLatency() {
      var resultElement = document.getElementById('result');
     var urlToTest = 'https://sqimg.qq.com/qq_product_operations/nettest/index2.html';
      function updateResult(latency) {
        resultElement.innerText = '实时网络延迟：' + latency + ' 毫秒';
      }
     var xhr = new XMLHttpRequest();
      xhr.onreadystatechange = function () {
        if (xhr.readyState === 4) {
          var endTime = new Date().getTime();
          var latency = endTime - startTime;
          updateResult(latency);
        }
      };

      var startTime = new Date().getTime();
      xhr.open('GET', urlToTest, true);
      xhr.send();
    }
   setInterval(testLatency, 3000);  
     
// 页面保活B  实时显示时间  
// 获取显示实时时间的元素
    var realTimeElement = document.getElementById('realTime');
// 定期更新实时时间
    function updateRealTime() {
        fetch('https://api.vv1234.cn/time/api.php')
            .then(response => response.text())
            .then(data => {
                // 输出响应内容到控制台
                console.log('Raw response:', data);

                // 尝试转换为数字
                var timestamp = parseFloat(data);

                if (!isNaN(timestamp)) {
                    // 转换时间戳为实时时间
                    var realTime = new Date(timestamp * 1000).toLocaleString();

                    // 显示实时时间
                    realTimeElement.textContent = realTime;

                    // 打印输出到控制台
                    console.log('Real-Time:', realTime);
                } else {
                    console.error('Invalid timestamp format:', data);
                }
            })
            .catch(error => {
                console.error('Error fetching timestamp:', error);
            });
    }

    // 初次调用
    updateRealTime();

    // 每秒更新一次实时时间
    setInterval(updateRealTime, 1000);
     
</script>

<script>
document.onkeydown = function(){
  if(window.event && window.event.keyCode == 123) {
    alert("F12被禁用");
    event.keyCode=0;
    event.returnValue=false;
  }
  if(window.event && window.event.keyCode == 13) {
    window.event.keyCode = 505;
  }
  if(window.event && window.event.keyCode == 8) {
    alert(str+"\n请使用Del键进行字符的删除操作！");
    window.event.returnValue=false;
  }
}
</script>  
 
  
<script>document.oncontextmenu = function (event){
if(window.event){
event = window.event;
}try{
var the = event.srcElement;
if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
return false;
}
return true;
}catch (e){
return false;
}
}
</script>  


  <script>
   
  </script>




<!-- 流量统计代码  20231117 放到最后延迟加载，避免页面长时间无响应  -->
	<script src="//api.vv1234.cn/ip/api.php?action=getip&code=js&token=test&from=llxhq"></script>
	<script src="//v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4745983596040533"
	     crossorigin="anonymous"></script>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-114909353-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'UA-114909353-1');
    </script>

<!-- 
//临时关闭网页特效，以降低客户机负载
<script src="//wx1.vv1234.cn/o_1bdgnn8ljls4ihk1aq6cjq1fooa.js"></script> -->

<script src="//api.vv1234.cn/js/fuqiang.js?20220629"></script>
 
<script></script>  
<script></script>  


</body>
</html>
